package com.seckill.service.impl;

import com.seckill.dao.BlogMap;
import com.seckill.entity.Blog;
import com.seckill.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BlogServiceImpl implements BlogService {
    @Autowired
    BlogMap blogMap;
    @Override
    public Blog getBlog(Integer id) {
        return blogMap.getBlog(id);
    }

    @Override
    public int updateBlog(Integer id) {
        return blogMap.updateBlog(id);
    }


}
